package com.yupi.yuaicodemother.ai.mcp;

import dev.langchain4j.mcp.client.DefaultMcpClient;
import dev.langchain4j.mcp.client.McpClient;
import dev.langchain4j.mcp.client.transport.stdio.StdioMcpTransport;;

public class MCPClientFactory {
    public static McpClient createMcpClient() {
        StdioMcpTransport transport = new StdioMcpTransport.Builder()
                .command(MCPConfig.getMCPCommand())
                .logEvents(true)
                .build();

        return new DefaultMcpClient.Builder()
                .transport(transport)
                .build();
    }
}